body {
    font-family: "Microsoft YaHei";
}
body, html {
    background-color: rgb(0, 204, 174);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.modal {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(229, 229, 229, .6);
    z-index: 9999;
}
.modal.hidden {
    display: none;
}
@-webkit-keyframes pop-animate {
    0% {
        top: 40%;
        opacity: 0;
    }
    100% {
        top: 50%;
        opacity: 1;
    }
}
@-moz-keyframes pop-animate {
    0% {
        top: 40%;
        opacity: 0;
    }
    100% {
        top: 50%;
        opacity: 1;
    }
}
@-ms-keyframes pop-animate {
    0% {
        top: 40%;
        opacity: 0;
    }
    100% {
        top: 50%;
        opacity: 1;
    }
}
@-o-keyframes pop-animate {
    0% {
        top: 40%;
        opacity: 0;
    }
    100% {
        top: 50%;
        opacity: 1;
    }
}
@keyframes pop-animate {
    0% {
        top: 40%;
        opacity: 0;
    }
    100% {
        top: 50%;
        opacity: 1;
    }
}
.modal-wrapper {
    position: relative;
    width: 600px;
    height: 300px;
    top: 50%;
    left: 50%;
    padding: 75px 50px;
    background-color: rgba(255, 255, 255, .8);
    box-shadow: 0px 0px 5px #aaa;
    border-radius: 10px;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: pop-animate .5s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    -o-animation: pop-animate .5s cubic-bezier(0.25, 0.1, 0.25, 1.0);
    animation: pop-animate .5s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}
.modal-body {
    display: block;
    margin: 25px 0 10px 0;
    width: 100%;
    line-height: 24px;
    padding: 0 10px;
    border: 2px solid #00bfa5;
    border-radius: 5px;
    outline: none;
    color: #ff4081;
}
.modal-btn {
    float: right;
    width: 60px;
    line-height: 32px;
    margin-left: 10px;
    border: none;
    background-color: #00bfa5;
    outline: none;
    font-size: .8rem;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}
.cancel {
    background-color: rgb(189, 189, 189);
}
.cancel:hover {
    background-color: rgb(159, 159, 159);
}
.success:hover {
    background-color: rgb(0, 171, 145);
}

canvas {
    display: block;
}
.bezier-transition {
    position: relative;
    margin: 10% auto;
    padding: 1rem;
    left: 0;
    right: 0;
    width: 95%;
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
    -webkit-box-shadow: 0px 0px 5px rgb(46, 59, 101);
    -moz-box-shadow: 0px 0px 5px rgb(46, 59, 101);
    box-shadow: 0px 0px 5px rgb(46, 59, 101);
}
.bezier-control {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}
[class *= "-point"] {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #000;
    background-color: #fff;
    cursor: pointer;
    z-index: 99;
}
.point-1 {
    left: 165px;
    top: 165px;
}
.point-2 {
    left: 105px;
    top: 105px;
}

.duration {
    width: 20px;
    height: 20px;
    left: 100px;
    top: 40px
}
.drag {
    position: relative;
    flex: 1 1 300px;
    border: 1px solid rgb(46,59,101);
    text-align: center;
}
.drag [class *= "-canvas"] {
    position: relative;
    border-radius: 5px;
    left: 0;
    margin: 10px;
}
.drag .bezier-canvas, .drag .duration-bar {
    margin: 0 auto;
}
.drag .running {
    left: 75%;
}
.btn-group {
    margin: 20px auto;
    text-align: center;
}
.btn {
    display: inline-block;
    width: 80px;
    margin: 0 10px;
    color: #fff;
    background-color: #00bfa5;
    line-height: 30px;
    border: none;
    outline: none;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
}
.btn.start-preview {
    background-color: #ff4081;
}

.default-bezier {
    position: relative;
    flex: 2 2 600px;
    border: 1px solid rgb(46,59,101);
}
.pre-setting{
    background-color: #e5e5e5;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -ms-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}
.pre-setting:hover {
    background-color: rgba(0, 191, 165, .5);
}
.default-bezier .selected{
    color: #fff;
    background-color: #00bfa5;
}
.code-wrapper {
    position: relative;
    width: 100%;
    border: 1px solid rgb(46,59,101);
    overflow: hidden;
}
.code-wrapper:hover, .code-wrapper:focus {
    background-color: #e5e5e5;
}
.code-area {
    width: 100%;
    resize: none;
    border: none;
    outline: none;
    font-family: "Courier New";
    margin: 10px 0;
    background: none;
}
.default-item {
    position: relative;
    display: inline-block;
    margin: 10px;
    width: 100px;
    text-decoration: none;
    text-align: center;
    color: #00bfa5;
    cursor: default;
}
.default-item .bezier-name {
    display: inline-block;
    width: 100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    word-break:keep-all;
}
.default-item:hover .delete {
    display: block;
    cursor: pointer;
}
.delete {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    line-height: 20px;
    background-color: rgba(46, 59, 101, .8);
    color: #fff;
    border-radius: 50%;
}